<?php
/*
 * @Author: your name
 * @Date: 2022-01-10 09:14:14
 * @LastEditTime: 2022-03-18 11:07:15
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /nlog/swoole_server/Defind.php
 */


// defined('__URL__') or define('__URL__',  'http://192.168.157.128:' . $this->port);      //网站
defined('__ROOT__') or define('__ROOT__', dirname(__DIR__) );                //目录

defined('__PATH__') or define('__PATH__', __ROOT__ . '/public');                //目录

  //找商办
  defined('__WXAPPID__') or define('__WXAPPID__', "wx1c67e8d3d73b32f4");                          //微信小程序APPID
  defined('__WXAPPSECRET__') or define('__WXAPPSECRET__', "77562730b1d858f10a5179d15c232116");    //微信小程序APPSecret
  defined('__TTAPPID__') or define('__TTAPPID__', "tt065570e8996cd87401");                                //头条小程序APPID
  defined('__TTAPPSECRET__') or define('__TTAPPSECRET__', "9425226f3d39c2ea53950a33eba23fba3e3b914e");    //头条小程序APPSecret
  
  //每日兼职
  defined('__PARTIMEWXAPPID__') or define('__PARTIMEWXAPPID__', "wxa6fad0fcf2d79a33");                          //微信小程序APPID
  defined('__PARTIMEWXAPPSECRET__') or define('__PARTIMEWXAPPSECRET__', "17e31d9c0ce90db2b3e6e52e78d7a19f");    //微信小程序APPSecret
  defined('__PARTIMETTAPPID__') or define('__PARTIMETTAPPID__', "tt561220afc92b599a01");                                //头条小程序APPID
  defined('__PARTIMETTAPPSECRET__') or define('__PARTIMETTAPPSECRET__', "d60d9a64d4ec337479c3dd08f3d93771c1ec78e1");    //头条小程序APPSecret
   
  
  //redis 配置
  defined('__REDIS_HOST__') or define('__REDIS_HOST__', '127.0.0.1');          //IP地址 
  defined('__REDIS_PASSWORD__') or define('__REDIS_PASSWORD__', NULL);            //密码
  defined('__REDIS_PORT__') or define('__REDIS_PORT__', 6379);                    //端口
  defined('__REDIS_ONLIE_KEY__') or define('__REDIS_ONLIE_KEY__', 'websocket_online');                      //websocket在线
  defined('ADMIN_LOGIN_REDIS_KEY') or define('ADMIN_LOGIN_REDIS_KEY', 'AdminToken_');                       //后台登录redis值
  defined('SHOP_LOGIN_REDIS_KEY') or define('SHOP_LOGIN_REDIS_KEY', 'SHOP_');                               //找商办后台登录key值
  defined('PARTTIME_LOGIN_REDIS_KEY') or define('PARTTIME_LOGIN_REDIS_KEY', 'PARTTIME_');                   //每日兼职登录key值
  defined('PARTTIME_SERVICE_REDIS_KEY') or define('PARTTIME_SERVICE_REDIS_KEY', 'PARTTIME_SERVICE');        //每日兼职客服key值
  defined('PARTTIME_ONLINE_REDIS_KEY') or define('PARTTIME_ONLINE_REDIS_KEY', 'PARTTIME_ONLINE_');          //每日兼职fd -> openid key值
  defined('PARTTIME_CUSTOM_REDIS_KEY') or define('PARTTIME_CUSTOM_REDIS_KEY', 'PARTTIME_CUSTOM_');          //每日兼职用户登录key值

  defined('CRM_LOGIN_REDIS_KEY') or define('CRM_LOGIN_REDIS_KEY', 'CRM_LOGIN_');                             //CRM后台登录


  //后台登录
  defined('ADMIN_LOGIN_HEADER_KEY') or define('ADMIN_LOGIN_HEADER_KEY', 'ADMIN-TOKEN');       //后台登录header
  defined('CRM_LOGIN_HEADER_KEY') or define('CRM_LOGIN_HEADER_KEY', 'CRM-TOKEN');             //CRM后台登录







  //mysql 配置 本地环境
  
  defined('__DB_HOST__') or define('__DB_HOST__', '192.168.1.11');       //数据库ip地址
  defined('__DB_PORT__') or define('__DB_PORT__', 3306);                 //数据库端口
  defined('__DB_DATABASE__') or define('__DB_DATABASE__', 'property');   //数据库名称
  defined('__DB_USERNAME__') or define('__DB_USERNAME__', 'root');   //数据库账号
  defined('__DB_PASSWORD__') or define('__DB_PASSWORD__', '123456');       //数据库密码

   //mysql 服务器配置

   defined('DB_HOST_PRODUCT') or define('DB_HOST_PRODUCT', '127.0.0.1');          //数据库ip地址
   defined('DB_PORT_PRODUCT') or define('DB_PORT_PRODUCT', 3306);                 //数据库端口
   defined('DB_DATABASE_PRODUCT') or define('DB_DATABASE_PRODUCT', 'property');   //数据库名称
   defined('DB_USERNAME_PRODUCT') or define('DB_USERNAME_PRODUCT', 'property');   //数据库账号
   defined('DB_PASSWORD_PRODUCT') or define('DB_PASSWORD_PRODUCT', 'BsDjAB3DbKShEtbr');       //数据库密码